﻿@model SpotModel
@using Nop.Web.Models.WindAlert;

<h4 style="margin-top:0px;">@T("WindAlert.Spot.WaveBox.Title")</h4>
        <table>
            <tr>
                <td colspan="2" class="spot-box-title">@Model.WaveData.WaveAdjustedTime.ToString("dd/MM/yyyy HH:mm")</td>
            </tr>
            <tr>
                <td>@T("WindAlert.Spot.WaveBox.Hs"):</td>
                <td>@Model.WaveData.Hmax - @Model.WaveData.Hs</td>
            </tr>
            <tr>
                <td>@T("WindAlert.Spot.WaveBox.Direction"):</td>
                <td style="direction:ltr">@Model.WaveData.DirectionLetters (@Model.WaveData.Direction)</td>
            </tr>
            <tr>
                <td>@T("WindAlert.Spot.WaveBox.Tav"):</td>
                <td>@Model.WaveData.tav</td>
            </tr>
            <tr>
                <td>@T("WindAlert.Spot.WaveBox.Temp"):</td>
                <td style="direction:ltr">@Model.WaveData.Temperture</td>
            </tr>
            <tr>
                <td colspan="2" style="height:21px;">
                    @if (!Model.WaveData.IsForecast)
                    {
                        <img src="~/WindAlert/Images/chart_bar.png" />
                        <a href="@Url.RouteUrl("WaveChart", new { spotId = Model.Id})" target="_blank">@T("WindAlert.Spot.WaveBox.Charts")</a>
                    }
                    else
                    {
                        <span style="color: #a8b3be">.</span>
                    }
                </td>
            </tr>
        </table>
  